package com.lxb.lxbgateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.*;


/**
 * @author lxb
 */
@SpringBootApplication
@EnableDiscoveryClient
public class LxbGatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(LxbGatewayApplication.class, args);
    }

    @RestController
    class EchoController{
        @RequestMapping(value = "/echo", method = RequestMethod.GET)
        public String echo(@RequestParam String name) {
            return "Hello gateway " + name;
        }
    }
}
